package cn.wolfcode.luowowo.acticle.query;

import cn.wolfcode.luowowo.common.query.QueryObject;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QuerytionsQuery extends QueryObject{
    private int orderType = 1;//排序 默认1最热 2最新
    private int paihangType = 2;//排序 默认0金牌 1回复 2顶

    public String getOrderBy(){
        return orderType == 1 ? "q.viewnum desc" : "q.createTime desc";
    }
}
